<%= javascript_tag do %>
  $(document).ready(
    function(){
      $('#inmo-search-results').html("<%= j (render 'search_results') %>");
      $('select').selectpicker({
        noneSelectedText: '<%= I18n.t("selectpicker.noneSelectedText") %>',
        noneResultsText: '<%= I18n.t("selectpicker.noneResultsText") %>',
        countSelectedText: '<%= I18n.t("selectpicker.countSelectedText") %>'
      });
      INMOAPP.truncateDescriptions();
      INMOAPP.sortSearchResults();
    }
  );
<% end %>
  <!-- MAIN CONTENT -->
  <div class="pg-opt">
    <div class="container">
      <div class="row">
        <div class="col-md-6">
          <h2>
            <%= I18n.t("searchForProperties") %>
          </h2>
        </div>
        <div class="col-md-6" style="">
          <ol class="breadcrumb">
            <li><a href="/">
              <%= I18n.t("webContentSections.home") %>
            </a></li>
            <li class="active">
              <%= I18n.t("searchForProperties") %>
            </li>
          </ol>
        </div>
      </div>
    </div>
  </div>

  <section class="slice bg-white bb">
    <div class="wp-section">
      <div class="container">
        <div class="row">
          <div class="col-md-9">

          <%# render '/pwb/search/search_results_header' %>
          <!-- placeholder for ajax refresh: -->
          <div id="inmo-search-results">
          </div>

          </div>


          <div class="col-md-3">
            <div class="sidebar">
              <!-- FILTERS -->

              <%= render '/pwb/search/search_form_for_rent' %>

              <%# render '/pwb/search/go_to_property' %>

              <!-- RECENTLY VIEWED -->

            </div>
          </div>
        </div>
      </div>
    </div>
  </section>
  <!-- FOOTER -->
